package builderPattern;

/**
 * @Description 设计模式:建造者模式 -- 创建型模式
 * @Author wbm
 * @Date 2019/8/15 下午 4:53
 **/
public class TestMethod {

    public static void main(String[] args) {
        MealBuider mealBuider = new MealBuider();

        Meal vegMeal = mealBuider.prepareVegMeal();
        System.out.println("=====Veg Meal=====");
        vegMeal.showItems();
        System.out.println("Total Cost: " + vegMeal.getCost());

        Meal nonVegMeal = mealBuider.prepareNonVegMeal();
        System.out.println("\n=====Non-Veg Meal=====");
        nonVegMeal.showItems();
        System.out.println("Total Cost: " + nonVegMeal.getCost());
    }

}
